<?
	
	//require_once('../fun/accounts.php');
	require_once('../fun/disorders.php');
	$results = array();
	if(isset($_POST['id']))
	{
		$results = DeleteDisorder($_POST['id']);
		if($results === true)
		{
			header("Location: index.php?deleted=$_POST[id]");
			die();
		}
	}else{
		$row = GetDisorder($_REQUEST['id']);
	}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Are You Sure?</title>
<? include ("../inc/required-links.php") ?>
</head>

<body>
<div id="wrapper">
	<div id="l_l"></div> 
    <div id="left">
		<?php include ('../nav/disorders.php') ?>
    </div>
    <div id="main">
		<?php include ('../inc/header.php') ?>
        <div id="t_bg"></div>
        <div id="content">
			<div class="otstup">
            	<div id="main_left">
                
                
                <div class="corners delete">
                    <div class="text">
                       <form class="confirmDelete formPost" method="post" action="delete.php">
                            <div class="modal-header" style="text-align:center;"><h1>Delete Disorder?</h1></div>
                            <br />
                            <div style="text-align:center;"><h1>' <?=$row['Name']?> '</h1></div>
                            <br />
                            <input type="hidden" name="id" value="<?=$row['id']?>" />
                       <div class="modal-footer">
                            <input class="btn btn-mini" type="submit" value="&nbsp;&nbsp;Delete&nbsp;&nbsp;" />
                        </div>
                        </form><br /><a href="http://cs.newpaltz.edu<?=$_GET['returnUrl']?>">Cancel</a>
                        
                </div>
                </div>
                <div id="right">
					<?php include ('../inc/cat_box1.php') ?>
					<?php include ('../inc/cat_box3.php') ?>
					<?php include ('../inc/cat_box4.php') ?>
					<?php include ('../inc/sn_links.php') ?>
                </div>
        		<div class="clear"></div>
        	</div>
        </div>
        <div class="clear"></div>  
        <div id="foot">
        	<?php include ('../inc/footer.php') ?>
		</div>
		<?php include ('../inc/copywright.php') ?>
        </div>
<div class="clear"></div> 
</div>
</body>
</html>
<? include ("../inc/required-js.php") ?>
